package Servlet;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import Info.TaocanI;
import Manage.TaocanM;

public class LookTaocanS extends HttpServlet{
	protected void service(HttpServletRequest request, HttpServletResponse response) 
			throws ServletException, IOException {
		TaocanM taocanm = new TaocanM();	
		List<TaocanI> list = taocanm.findAll();
			
		request.setAttribute("taocans",list);
		request.getRequestDispatcher("LookTaocan.jsp").forward(request, response);
		response.setContentType("text/html;charset=utf-8");
	}

}
